<template>
  <div>
    <BasePay
      ref="basePay"
    />
    <!--    充值明细展示-->
    <RechargeShowTable
      ref="RechargeShowTable"
    />
  </div>
</template>

<script>
import BasePay from '@/components/BasePay'
import RechargeShowTable from '@/components/RechargeShowTable'
import { EventBus } from '@/event-bus'
export default {
  name: 'MemberPayment',
  components: {
    BasePay,
    RechargeShowTable
  },
  data() {
    return {
      member: {}
    }
  },
  mounted() {
    // 发送数据调用查询充值数据
    EventBus.$on('memberData', member => {
      this.member = member
      this.$refs.RechargeShowTable.select(member.id)
    })
  },
  beforeDestroy() {
    EventBus.$off('memberData')
  }
}
</script>

<style scoped>

</style>
